import Mock from 'mockjs'

const id1 = [1, 2, 3, 4]
const id2=[11,12,13,14]
const mainCate = ['小米手机', '大家电', '小爱智能', '路由器']
const title1 = ['小米10 至尊版', '小米10 青春版', '小米10 PRO', '小米10 ULTRA']
const imageurl1 = [
    'src/assets/images/1.webp',
    'src/assets/images/2.webp',
    'src/assets/images/3.webp',
    'src/assets/images/4.webp'
]
const goodsList = [
    {
        id: id2[0],
        title: title1[0],
        imgUrl: imageurl1[0]
    },
    {
        id: id2[1],
        title: title1[1],
        imgUrl: imageurl1[1]
    },
    {
        id: id2[2],
        title: title1[2],
        imgUrl: imageurl1[2]
    },
    {
        id: id2[3],
        title: title1[3],
        imgUrl: imageurl1[3]
    }
]
export const mainCateData = Mock.mock({
    cateLists: [
        {
            id: id2[0],
            categoryName: mainCate[0],
            goodsList
        },
        {
            id: id2[1],
            categoryName: mainCate[1],
            goodsList
        },
        {
            id: id2[2],
            categoryName: mainCate[2],
            goodsList
        },
        {
            id: id2[3],
            categoryName: mainCate[3],
            goodsList
        },
    ]
})